using System;
using Newtonsoft.Json;

namespace demo
{
    /// <summary>
    /// 患者数据查询请求模型
    /// </summary>
    public class PatientDataRequest
    {
        [JsonProperty("userId")]
        public string UserId { get; set; }
    }

    /// <summary>
    /// 患者数据查询响应模型
    /// </summary>
    public class PatientDataResponse
    {
        [JsonProperty("success")]
        public bool Success { get; set; }

        [JsonProperty("message")]
        public string Message { get; set; }

        [JsonProperty("data")]
        public PatientData Data { get; set; }
    }

    /// <summary>
    /// 患者数据模型
    /// </summary>
    public class PatientData
    {
        [JsonProperty("outP_VISIT_ID")]
        public string OutpVisitId { get; set; }

        [JsonProperty("patienT_ID")]
        public string PatientId { get; set; }

        [JsonProperty("patI_NAME")]
        public string PatientName { get; set; }

        [JsonProperty("outP_SPECIAL_NAME")]
        public string OutpSpecialName { get; set; }

        [JsonProperty("outP_DATE")]
        public string OutpDate { get; set; }

        [JsonProperty("visiT_ID")]
        public string VisitId { get; set; }

        [JsonProperty("admissioN_DOCTOR")]
        public string AdmissionDoctor { get; set; }

        [JsonProperty("doctoR_VS_OUTP_VISIT_ID")]
        public string DoctorVsOutpVisitId { get; set; }

        [JsonProperty("qR_CODE")]
        public string QrCode { get; set; }

        [JsonProperty("registratioN_FEE_STATUS")]
        public string RegistrationFeeStatus { get; set; }

        [JsonProperty("paT_LEVEL")]
        public string PatLevel { get; set; }

        [JsonProperty("liS_COUNT")]
        public string LisCount { get; set; }

        [JsonProperty("exaM_COUNT")]
        public string ExamCount { get; set; }

        [JsonProperty("reaD_FLAG")]
        public string ReadFlag { get; set; }

        [JsonProperty("ordeR_NAMES")]
        public string OrderNames { get; set; }
    }

    /// <summary>
    /// 医生患者记录查询响应模型
    /// </summary>
    public class DoctorPatientRecordsResponse
    {
        [JsonProperty("success")]
        public bool Success { get; set; }

        [JsonProperty("message")]
        public string Message { get; set; }

        [JsonProperty("data")]
        public PatientData[] Data { get; set; }
    }

    /// <summary>
    /// API错误响应模型
    /// </summary>
    public class ApiErrorResponse
    {
        [JsonProperty("message")]
        public string Message { get; set; }

        [JsonProperty("code")]
        public string Code { get; set; }
    }

    /// <summary>
    /// 患者申请单查询请求模型
    /// </summary>
    public class PatientApplyListRequest
    {
        [JsonProperty("patient_id")]
        public string PatientId { get; set; }

        [JsonProperty("days")]
        public int Days { get; set; }
    }

    /// <summary>
    /// 患者申请单查询响应模型
    /// </summary>
    public class PatientApplyListResponse
    {
        [JsonProperty("success")]
        public string Success { get; set; }

        [JsonProperty("msg")]
        public string Message { get; set; }

        [JsonProperty("data")]
        public PatientApplyInfo[] Data { get; set; }
    }

    /// <summary>
    /// 患者申请单信息模型
    /// </summary>
    public class PatientApplyInfo
    {
        [JsonProperty("APPLY_NO")]
        public string ApplyNo { get; set; }

        [JsonProperty("VISIT_COUNT")]
        public string VisitCount { get; set; }

        [JsonProperty("ORDER_NAME")]
        public string OrderName { get; set; }

        [JsonProperty("APP_TYPE_NAME")]
        public string AppTypeName { get; set; }

        [JsonProperty("APPLY_DEPT")]
        public string ApplyDept { get; set; }

        [JsonProperty("APPLY_DOC")]
        public string ApplyDoc { get; set; }

        [JsonProperty("SUGGESTED_AMOUNT")]
        public string SuggestedAmount { get; set; }

        [JsonProperty("VISIT_SERIAL_NO")]
        public string VisitSerialNo { get; set; }
    }

    /// <summary>
    /// 申请单号查询医嘱名称请求模型
    /// </summary>
    public class QueryOrderNameByApplyNoRequest
    {
        [JsonProperty("apply_nos")]
        public string[] ApplyNos { get; set; }
    }

    /// <summary>
    /// 申请单号查询医嘱名称响应模型
    /// </summary>
    public class QueryOrderNameByApplyNoResponse
    {
        [JsonProperty("success")]
        public string Success { get; set; }

        [JsonProperty("msg")]
        public string Message { get; set; }

        [JsonProperty("data")]
        public OrderNameData[] Data { get; set; }
    }

    /// <summary>
    /// 医嘱名称数据模型
    /// </summary>
    public class OrderNameData
    {
        [JsonProperty("apply_no")]
        public string ApplyNo { get; set; }

        [JsonProperty("order_name")]
        public string OrderNames { get; set; }

        [JsonProperty("suggested_amount")]
        public string Suggested_Amount { get; set; }
    }
}